package duotai;

/**
 * @Author admin
 * @Date 2019/3/20 8:25
 */
public  class GongChang {
    public  Car getCar(String xz){
        if (xz.equals("1")){
            return new BMW();
        }else if (xz.equals("2")){
            return new QQ();
        }else {
            return new Car();
        }
    }
}
